Repository navigation
Block public access to suspicious pastes - #39
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
suspiciousboolean to Pastes, defaulting to false. When true, the existing shared access check returns a plain 403 response withCache-Control: no-storefor the share page, live subdomains, raw HTML, rendered preview, and Markdown. It runs before password/owner access and ETag handling, so existing access tokens and cached requests cannot bypass the block.Content stays intact, clearing the flag restores access, and web/API republishing cannot change the flag. The migration does not flag any records; the requested production IDs will be updated separately after deployment.
The existing security CI was failing on outdated locked dependencies. Refreshes the affected dependencies within their existing major versions and Brakeman. Documents the unused MCP OAuth client discovery advisory as inapplicable: this application only hosts an MCP server with Doorkeeper, and never constructs an outbound MCP client. See the upstream advisory. Pins CI and deployment runners to Ubuntu 24.04 because
ubuntu-latestnow resolves to 26.04, which has no prebuilt Ruby 3.4.7; the application Ruby version is unchanged.Validation:
SKIP_CSS_BUILD=1); CI builds assets normally.